import ExtendedHelp from './ExtendedHelp'

export interface CLIOption<T = any> {
  arg?: string
  choices?: T[]
  /** If false, the option is only usable in the ncurc file, or when using npm-check-updates as a module, not on the command line. */
  cli?: boolean
  default?: T
  deprecated?: boolean
  description: string
  help?: ExtendedHelp
  parse?: (s: string, p?: T) => T
  long: string
  short?: string
  type: string
}

export default CLIOption
